import { BasicFetchResult } from '../model/baseModel';
import { defHttp } from '@/utils/http/axios';
const api = '/amsCustomerDemand'
/**
 * 查询客户租赁需求分页
 * @author frank
 * @date 2023-05-09 16:34:46
 */
export const page = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: api + '/page', params });
/**
 * 添加客户租赁需求
 * @author frank
 * @date 2023-05-09 16:34:46
 */
export const add = (params?: any) => defHttp.post({ url: api + '/add', params });
/**
 * 修改客户租赁需求
 * @author frank
 * @date 2023-05-09 16:34:46
 */
export const edit = (params?: any) => defHttp.post({ url: api + '/edit', params });

/**
 * 删除客户租赁需求
 * @author frank
 * @date 2023-05-09 16:34:46
 */
export const del = (ids: string[]) =>
  defHttp.post({ url: api + '/delete', params: ids });
